/**
 * @version 2007-5-17
 * @author xalinx at gmail dot com
 */
package org.nanhill.commons.dbutil.builder;

public enum Condition {
	EQ(true, "="), LE_EQ(true, "<="), LE(true, "<"), GT_EQ(true, ">="), GT(true, ">"), LIKE(true, "like"), IS_NULL(
			false, "is null"), IS_NOT_NULL(false, "is not null"), AND(false, "and"), OR(false, "or"), START(false, "("), END(
			false, ")");

	private boolean compare;

	private String expression;

	public String getExpression() {
		return expression;
	}

	public boolean isCompare() {
		return compare;
	}

	private Condition(boolean compare, String sql) {
		this.compare = compare;
		this.expression = sql;
	}

}